﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using BoostSite.Demo.Definitions.Base.PropertyBlockTypes;
using EPiServer;
using EPiServer.DataAbstraction;
using EPiServer.DataAnnotations;
using EPiServer.SpecializedProperties;
using EPiServer.Web;

namespace BoostSite.Demo.Definitions.Templates.PropertyBlockTypes
{
	[ContentType(AvailableInEditMode = false,
				 DisplayName = "Image with link",
				 Description = "An image with associated link",
				 GroupName = BlockGroupNames.PropertyBlocks)]
	public class ImageWithLink : BasePropertyBlockType
	{
		[Display(
			Name = "Title",
			Description = "",
			GroupName = SystemTabNames.Content,
			Order = 1)]
		public virtual string MainTitle { get; set; }

		[Display(
			Name = "Image",
			Description = "",
			GroupName = SystemTabNames.Content,
			Order = 2)]
		[UIHint(UIHint.Image)]
		public virtual Url MainImage { get; set; }
		 
		[Display(
			Name = "Link",
			Description = "",
			GroupName = SystemTabNames.Content,
			Order = 3)] 
		public virtual Url MainLink { get; set; }
	}
}
